Skip to content

fix: # of Activities of active members change based on the time frame#792

Merged
joanagmaia merged 4 commits intolinuxfoundation:mainfrom
skwowet:activities
Apr 24, 2023
Merged

fix: # of Activities of active members change based on the time frame#792
joanagmaia merged 4 commits intolinuxfoundation:mainfrom
skwowet:activities

Conversation

@skwowet
Copy link
Copy Markdown
Collaborator

@skwowet skwowet commented Apr 21, 2023

Changes proposed ✍️

What

🤖 Generated by Copilot at b9369bf

Replaced list method with listActive method in actions.js to filter and sort active members more efficiently and accurately. Part of a dashboard module refactor.

🤖 Generated by Copilot at b9369bf

listActive method
filters and sorts by activity
dashboard refactored

Why

How

🤖 Generated by Copilot at b9369bf

  • Replace list method of MemberService with listActive method to simplify query logic and measure member activity more accurately (link)

Checklist ✅

  • Label appropriately with Feature, Improvement, or Bug.
  • Add screehshots to the PR description for relevant FE changes
  • New backend functionality has been unit-tested.
  • API documentation has been updated (if necessary) (see docs on API documentation).
  • Quality standards are met.

@skwowet
Copy link
Copy Markdown
Collaborator Author

skwowet commented Apr 21, 2023

This PR hopefully should fix the issue #755 🍀

@skwowet
Copy link
Copy Markdown
Collaborator Author

skwowet commented Apr 21, 2023

Here's how it looks after the fix, and also I have manually checked the contributions of active profile to ensure it works as intended ✨

Screen.Recording.2023-04-21.at.3.24.31.PM.mov

@joanagmaia joanagmaia added the Bug Created by Linear-GitHub Sync label Apr 21, 2023
@joanagmaia joanagmaia self-requested a review April 21, 2023 10:29
Copy link
Copy Markdown
Contributor

@joanagmaia joanagmaia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! 😄
Could you update orderBy from activeDaysCount_DESC to activityCount_DESC?
That way member with higher activityCount (which is the value we are displaying) can be sorted properly

@joanagmaia joanagmaia added the Contributor Created by Linear-GitHub Sync label Apr 21, 2023
@skwowet
Copy link
Copy Markdown
Collaborator Author

skwowet commented Apr 21, 2023

@joanagmaia Oops, sorry I missed that. Now updated the PR with changes!

joanagmaia
joanagmaia approved these changes Apr 21, 2023
Comment thread frontend/src/modules/dashboard/store/actions.js Outdated
Copy link
Copy Markdown
Contributor

@joanagmaia joanagmaia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@joanagmaia joanagmaia merged commit 628925d into linuxfoundation:main Apr 24, 2023
@skwowet skwowet deleted the activities branch July 19, 2023 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Created by Linear-GitHub Sync Contributor Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants